<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="struts" uri="/struts-tags" %>
<html>
<head>
    <title>职位列表</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script language="javascript"
            src="${pageContext.request.contextPath}/OfficeAuto/script/jquery.js"></script>
    <script language="javascript"
            src="${pageContext.request.contextPath}/OfficeAuto/script/pageCommon.js"
            charset="utf-8"></script>
    <script language="javascript"
            src="${pageContext.request.contextPath}/OfficeAuto/script/PageUtils.js"
            charset="utf-8"></script>
    <script language="javascript"
            src="${pageContext.request.contextPath}/OfficeAuto/script/DataShowManager.js"
            charset="utf-8"></script>
    <link type="text/css" rel="stylesheet"
          href="${pageContext.request.contextPath}/OfficeAuto/style/blue/pageCommon.css"/>
    <script type="text/javascript">


    </script>
</head>
<body>

<div id="Title_bar">
    <div id="Title_bar_Head">
        <div id="Title_Head"></div>
        <div id="Title">
            <!--页面标题-->
            <img border="0" width="13" height="13"
                 src="${pageContext.request.contextPath}/OfficeAuto/style/images/title_arrow.gif"/>
            职位管理
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<div id="MainArea">
    <table cellspacing="0" cellpadding="0" class="TableStyle">

        <!-- 表头-->
        <thead>
        <tr align="CENTER" valign="MIDDLE" id="TableTitle">
            <td width="200px">岗位名称</td>
            <td width="300px">岗位说明</td>
            <td>相关操作</td>
        </tr>
        </thead>

        <!--显示数据列表-->
        <tbody id="TableData" class="dataContainer" datakey="roleList">
        <struts:iterator value="list">
            <tr class="TableDetail1 template">
                <td>${name}&nbsp;</td>
                <td>${description}&nbsp;</td>
                <td><struts:if test="#session.user.booleanPrivilege('岗位删除')">
                    <struts:a onclick="return window.confirm('确定删除当前记录吗？')" action="role_delete?id=%{   id   }"
                              namespace="/">删除</struts:a></struts:if>
                    <struts:if test="#session.user.booleanPrivilege('岗位修改')">
                        <struts:a action="role_editUi!getById.do?id=%{  id  }"
                                                                                     namespace="/">修改</struts:a></struts:if>
                    <struts:if test="#session.user.booleanPrivilege( ' ')"><struts:a
                            href="privilege_set!setPrivilege.do?id=%{id}">设置权限</struts:a></struts:if>
                </td>
            </tr>
        </struts:iterator>
        </tbody>
    </table>

    <%--分页--%>
    <%@include file="/OfficeAuto/BBS_Topic/page.jsp"%>
    <struts:form id="pageForm" action="role_list!findAll.do" theme="simple">
        <struts:hidden name="id"></struts:hidden>
    </struts:form>

    <struts:if test="#session.user.booleanPrivilege('岗位添加')">
        <!-- 其他功能超链接 -->
        <div id="TableTail">
            <div id="TableTail_inside"><struts:a action="role_addUi!add.do"><img
                    src="${pageContext.request.contextPath}/OfficeAuto/style/images/createNew.png"/></struts:a>
                <a href="javascript:history.go(-1);"><img
                        src="${pageContext.request.contextPath}/OfficeAuto/style/images/goBack.png"/></a>
            </div>
        </div>
    </struts:if>

</div>
</body>
</html>
